
function sayHello(name) {
  console.log('Hello '+name+'!')
  //下方的表示无法显示
  //console.log('Hello ${name}!')
}
function sayGoodbye(name) {
  console.log('Goodbye ' +name +'!')
}

module.exports.sayHello = sayHello
exports.sayGoodbye = sayGoodbye

//下边的表示方式出错了
// module.exports = {sayHello: sayHello}
// module.exports = {sayGoodbye: sayGoodbye}